<template>
  <div>
    <h1>管理端</h1>
    <nav>
      <router-link to="/admin/users">用户管理</router-link>
      <router-link to="/admin/departments">科室管理</router-link>
      <router-link to="/admin/roles">角色管理</router-link>
    </nav>
    <router-view />
  </div>
</template>

<script setup>
// 管理端主页面逻辑
</script>

<script>
export default {
  name: 'AdminIndex',
  methods: {
    navigateTo(module) {
      // 导航到对应模块
      this.$router.push(`/admin/${module}`)
    }
  }
}
</script>

<style scoped>
.admin-container {
  padding: 20px;
}

.module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.module-item {
  width: 200px;
  height: 150px;
  background-color: #f5f7fa;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.module-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.module-item h3 {
  margin-bottom: 10px;
  color: #409eff;
}

.module-item p {
  color: #606266;
  font-size: 14px;
}
</style>